public class Text {
    public static void main(String[] args) {
        double hight = 100.0;
        double sum=100;
        for (int i = 1; i < 10; i++) {
            sum += hight;
            hight = hight/2;
        }
        System.out.println(sum);
        System.out.println(hight/2);
    }
}
